import getPencilBrush from "./getPencilBrush";
import getMarkPenBrush from "./getMarkPenBrush";
import getEraserBrush from "./getEraserBrush";
import getRectBrush from "./getRectBrush";
import { directiveEnum } from "../index";
export default function getBrush(directive: directiveEnum, canvas: HTMLCanvasElement, opt: any) {
  switch (directive) {
    case "pencil":
      return getPencilBrush(canvas, opt);
    case "markPen":
      return getMarkPenBrush(canvas, opt);
    case "eraser":
      return getEraserBrush(canvas, opt);
    case "animation":
      return getRectBrush(canvas, opt);
  }
}
